/*
 * @lc app=leetcode.cn id=1480 lang=typescript
 *
 * [1480] 一维数组的动态和
 */

// @lc code=start
function runningSum(nums: number[]): number[] {
    let sum = 0;
    return nums.map((i) => {
        sum += i;
        return sum;
    });
}
// @lc code=end
